<include file="Public:pagerForm" />
<script>
function update() {
	navTab.reload("__APP__/Car/index/", {});
}
function cardbltable(target,rel){
    if( target == 'sid_car'){
    $.pdialog.open("__URL__/read/id/"+rel+"/sid_car="+rel,"pdialogid", "查看", { max:false, mask:true, width: 800, height: 410});
    } 
  }
</script>
<form id="pagerForm" method="post" action="__URL__/index">
	<input type="hidden" name="pageNum" value="{$currentPage}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
 	<!-- <input type="hidden" name="orderField" value="${param.orderField}" /> -->
</form>
<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" rel="pagerForm"
			action="__URL__" method="post">
			<div class="searchBar">
				<table class="searchContent">
					<tr>
						<td>车辆号码：<input type="text" name="carno" class="medium">
						</td>
					</tr>
				</table>
				<div class="subBar">
					<ul>
						<li><div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">查询</button>
								</div>
							</div></li>
					</ul>
				</div>
			</div>
		</form>
	</div>

	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="__URL__/add" target="dialog"
					mask="true" width="800" height="450"><span>新增</span></a></li>
				<li><a class="delete" href="__URL__/remove/navTabId/__MODULE__"
					rel="ids" postType="string" target="selectedTodo" title="你确定要删除吗？"
					warn="请选择车辆"><span>删除</span></a></li>
				<li><a class="edit" href="__URL__/edit/id/{sid_car}"
					target="dialog" mask="true" warn="请选择车辆" title="修改信息" width="800" height="450"><span>修改</span></a></li>
				<li class="line">line</li>
				<li><a class="icon" href="#" onclick="update()"><span>刷新</span></a></li>
			</ul>			
		</div>
		<table class="table" width="100%" layoutH="136">
			<thead>
				<tr>
					<th width="30" align="center"><input type="checkbox"
						group="ids" class="checkboxCtrl"></th>
					<th width="100" align="center">车牌号</th>
					<th width="100" align="center">承运商</th>
					<th width="100" align="center">车辆类型</th>
					<th width="80" align="center">发动机型号</th>
					<th width="90" align="center">购买保险时间</th>
					<th width="90" align="center">年审时间</th>
					<th width="80" align="center">厂牌型号</th>
					<th width="80" align="center">驾驶员</th>
					<th width="90" align="center">购买日期</th>
					<th width="70" align="center">状态</th>
					<th width="150" align="center">备注</th>
					<th width="80" align="center">操作</th>
				</tr>
			</thead>
			<tbody>
				<volist id="vo" name="list">
				<tr target="sid_car" rel="{$vo.id}" ondblclick="cardbltable('sid_car',{$vo.id})">
					<td><input type="checkbox" name="ids" value="{$vo.id}" /></td>
					<td>{$vo['carno']}</td>
					<td>{$vo['carrier']}</td>
					<td>{$vo['cartype']}</td>
					<td>{$vo['engineno']}</td>
					<td>{$vo['buyinsuretime']}</td>
					<td>{$vo['audittime']}</td>
					<td>{$vo['factorymodel']}</td>
					<td>{$vo['driver']}</td>
					<td>{$vo['buydate']}</td>
					<td><eq name="vo['status']" value="0">不可用<else/>可用</eq></td>
					<td>{$vo['notes']}</td>

					<!-- 
						href="__URL__/foreverdelete/navTabId/car_panel" rel="ids"
						postType="string" target="selectedTodo" -->

					<td><a class="delete"
						href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__"
						target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
						|&nbsp;<a href="__URL__/edit/id/{$vo['id']}" target="dialog" mask="true" width="800" height="450">编辑</a></td>
				</tr>
				</volist>
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>每页</span> <select class="combox" name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value})">
					<eq name="numPerPage" value="24">
					<option value="24" selected>24</option>
					<else />
					<option value="24">24</option>
					</eq>
					<eq name="numPerPage" value="50">
					<option value="50" selected>50</option>
					<else />
					<option value="50">50</option>
					</eq>
					<eq name="numPerPage" value="100">
					<option value="100" selected>100</option>
					<else />
					<option value="100">100</option>
					</eq>
					<eq name="numPerPage" value="200">
					<option value="200" selected>200</option>
					<else />
					<option value="200">200</option>
					</eq>
				</select> <span>条，共{$totalCount}条</span>
			</div>

			<div class="pagination" targetType="navTab"
				totalCount="{$totalCount}" numPerPage="{$numPerPage}"
				pageNumShown="10" currentPage="{$currentPage}"></div>

		</div>

	</div>

</div>